package com.mdhw.order.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;

import com.mdhw.order.entity.DailiOrder;
import com.mdhw.order.vo.CaiwuJiesuanListVo;
import com.mdhw.order.vo.UserOrderListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface DailiOrderDao extends BaseMapper<DailiOrder> {
    int deleteByPrimaryKey(Integer id);

    int insert(DailiOrder record);

    int insertSelective(DailiOrder record);

    DailiOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DailiOrder record);

    int updateByPrimaryKey(DailiOrder record);

    List<UserOrderListVo> selectDailiOrderGroupbyUser(@Param(Constants.WRAPPER) QueryWrapper<UserOrderListVo> wrapper);


}